package com.platform.modules.sys.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/**
 * 资质证书
 * @author wangLc
 */
@Data
@TableName("SYS_ORG_APTITUDE")
public class SysOrgAptitudeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value="证书ID",example="")
	@TableId
	private String id;

	@ApiModelProperty(value="单位id",example="")
	private String orgNo;

	@ApiModelProperty(value="资质证书名称",example="")
	private String aptitudeName;
	
	@ApiModelProperty(value="资质类型(什么类型的资质)",example="")
	private String aptitudeType;

	@ApiModelProperty(value="资质证书编号",example="")
	private String aptitudeNo;

	@ApiModelProperty(value="资质大类别",example="")
	private String BigType;
	
	@ApiModelProperty(value="发证机关",example="")
	private String authority;
	
	@ApiModelProperty(value="证书等级",example="")
	private String grade;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(
	          pattern = "yyyy-MM-dd",
	          timezone = "GMT+8"
	  )
	@ApiModelProperty(value="发证日期",example="")
	private Date grantTime;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(
	          pattern = "yyyy-MM-dd",
	          timezone = "GMT+8"
	  )
	@ApiModelProperty(value="有效起始日期",example="")
	private Date expiryStartTime;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(
	          pattern = "yyyy-MM-dd",
	          timezone = "GMT+8"
	  )
	@ApiModelProperty(value="有效截止日期",example="")
	private Date expiryEndTime;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(
	          pattern = "yyyy-MM-dd",
	          timezone = "GMT+8"
	  )
	@ApiModelProperty(value="提交审核时间",example="")
	private Date submitTime;
	
	@ApiModelProperty(value="证书物理地址",example="")
	private String filePath;
	
	@ApiModelProperty(value="证书二维码",example="")
	private String qrPath;

	@ApiModelProperty(value="证书状态",example="")
	private String aptitudeStatus;
	
	@ApiModelProperty(value="信息创建人",example="")
	private String createUserId;
	
	@ApiModelProperty(value="创建时间",example="")
	private Date createTime;
	
	@ApiModelProperty(value="资质项集合",example="")
	@TableField(exist = false)
	private List<SysAptitudeExtEntity> aptitudeExtList;
	
	@ApiModelProperty(value="资质所在单位名称",example="")
	@TableField(exist = false)
	private String orgName;
	
	@ApiModelProperty(value="资质所在单位统一社会信用代码",example="")
	@TableField(exist = false)
	private String creditCode;
	
	@ApiModelProperty(value="审核人姓名",example="")
	@TableField(exist = false)
	private String auditor;

	@ApiModelProperty(value="审核人状态",example="")
	@TableField(exist = false)
	private String auditStatus;
	
	@ApiModelProperty(value="审核时间",example="")
	@TableField(exist = false)
	private Date auditTime;

	@ApiModelProperty(value="审核意见",example="")
	@TableField(exist = false)
	private String auditTxt;

	@ApiModelProperty(value="审核单位Id",example="")
	@TableField(exist = false)
	private String auditOrgNo;

	@ApiModelProperty(value="审核单位名称",example="")
	@TableField(exist = false)
	private String auditOrgName;


}
